﻿/*
 * Erstellt mit SharpDevelop.
 * Benutzer: Kai Patrick
 * Datum: 31.03.2008
 * Zeit: 18:33
 * 
 * Sie können diese Vorlage unter Extras > Optionen > Codeerstellung > Standardheader ändern.
 */

using System;
using Irony.Compiler;

namespace Gamadus.Builder.Ast
{
	/// <summary>
	/// Description of GmlNode.
	/// </summary>
	public class GmlNode
	{
		//public SourceSpan Span;
		protected SourceLocation location;
		public GmlNode(Irony.Compiler.AstNode node, SourceLocation location)
		{
			this.location = location;
//			Microsoft.Scripting.SourceLocation start = ConvertLocation(node.Location);
//			Microsoft.Scripting.SourceLocation end = new Microsoft.Scripting.SourceLocation(start.Index+1, start.Line, start.Column);
//			Span = new SourceSpan(start, end);
		}
		
//		Microsoft.Scripting.SourceLocation ConvertLocation(Irony.Compiler.SourceLocation loc)
//		{
//			return new Microsoft.Scripting.SourceLocation(loc.Position, loc.Line+1, loc.Column+1);
//		}
		
	}
}
